while True:
	v1 = input("请输入整数: ")
	if v1 == 'q':
		break

	while not isinstance(v1, int):
		try:
			v1 = int(v1)
		except ValueError as e:
			v1 = input(f"您输入的{v1}不是整数，请重新输入")	
	
	v2 = input("请输入另一个整数: ")
	if v2 == 'q':
		break
	while not isinstance(v2, int):
		try:
			v2 = int(v2)
		except ValueError as e:
			v2 = input(f"您输入的{v2}不是整数，请重新输入")

	print(f"相加后的结果是： {v1 + v2}")